<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="description" content=""/>
    <meta name="author" content="" />
    <title>汽车购票系统——查询车讯主页面</title>

    <link th:href="@{/css/query.css}" rel="stylesheet">
    <link th:href="@{/css/reset.css}" rel="stylesheet">
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

</head>
<body>
<body style="background: #F0F8FF" onLoad="scrollTo(0,0);">
<!-- -----头 部----- -->
<header>
    <div class="contain">
        <div class="headlt">
            <a th:href="@{/customer/index}"><img th:src="@{/image/logo.png}"></a>
        </div>
        <div class="headrg">
            <ul>
                <li><a  th:text="${customer.nick_name}">昵称</a>
                    <ul>
                        <li><a th:href="@{/customer/query(id=${customer.id})}">我的信息</a></li>
                        <li><a th:href="@{/order/index(id=${customer.id})}">我的订单</a></li>
                    </ul>
                </li>
                <li><a th:href="@{/publiz/index}">注销</a></li>
            </ul>
        </div>
    </div>
</header>
<!-- -----导 航----- -->
<nav>
    <div class="contain_nav">
        <ul>
            <li><a th:href="@{/customer/index}" class="actives">首页</a></li>
            <li><a href="#">改签</a></li>
            <li><a href="#">退签</a></li>
            <li><a href="#">攻略</a></li>
            <li><a href="#">景点门票</a></li>
            <li><a href="#">旅客问答</a></li>
        </ul>
    </div>
</nav>
<div class="query_main">
    <form class="insite form-inline" th:action="@{/ticket/query}" method="get">
    <label>出发城市：<input type="text" name="starting_station" class="form-control"th:value="${ticket.starting_station}"/></label>
    <label>到达城市：<input type="text" name="destination" class="form-control" th:value="${ticket.destination}" /></label>
        <button  type="submit"  class="btn btn-primary btn-block">查 询</button>
    </form>
    <div class="table-responsive">
        <table class="table table-striped">
            <thead>
            <tr>
                <th>出发城市</th>
                <th>到达城市</th>
                <th>线路号</th>
                <th>车牌</th>
                <th>时间</th>
                <th>余票</th>
                <th>票价</th>
                <th style="width: 160px;"></th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="item:${tickets}">
                <td th:text="${item.starting_station}">起点站</td>
                <td th:text="${item.destination}">终点站</td>
                <td th:text="${item.line_number}">线路号</td>
                <td th:text="${item.pleat_number}">车牌</td>
                <td th:text="${item.departure_time}">日期</td>
                <td th:text="${item.seating}">车位数</td>
                <td th:text="${item.ticket_price}">票价</td>
                <td>
                    <a class="btn btn-primary btn-block" th:href="@{/ticket/place(id=${item.id})}">预订</a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<!-- -----服 务----- -->
<div class="service">
    <div class="service_con">
        <div class="service01">
            <img th:src="@{/image/fuwu.png}">
            <p>7X24小时服务</p>
        </div>
        <div class="service02">
            <img th:src="@{/image/chupiao.png}">
            <p>第一时间出票</p>
        </div>
        <div class="service03">
            <img th:src="@{/image/zhifu.png}">
            <p>安全支付</p>
        </div>
        <div class="service04">
            <img th:src="@{/image/shouhou.png}">
            <p>无忧售后保障</p>
        </div>
    </div>
</div>
<footer>
    <div class="foot">
        <ul>
            <li><a href="">网站地图</a></li>
            <li><a href="">关于我们</a></li>
            <li><a href="">联系我们</a></li>
        </ul>
        <ul>
            <li><a href="">合作企业</a></li>
            <li><a href="">法律声明</a></li>
            <li><a href="">隐私政策</a></li>
        </ul>
        <ul>
            <li><a href="">帮助中心</a></li>
            <li><a href="">在线提问</a></li>
            <li><a href="">问题反馈</a></li>
        </ul>
        <div class="foot_right">
            <p class="tel">400-488-6666</p>
            <p class="online">在线客服</p>
        </div>
    </div>
    <div class="copyright">&copy;2018-11  CYL版权所有</div>
</footer>
</body>
</html>
